// 学生ID	学生姓名	学生年龄	学生性别	学生班级	学生薪水
function Student(id, name, age, gender, clazz, salary) {
    this.id = id;
    this.name = name;
    this.age = age;
    this.gender = gender;
    this.clazz = clazz;
    this.salary = salary;
}

/* 生成指定个数的学生数组 */
function createStudents(n) {
    const students = [];
    for (let i = 0; i < n; i++) {
        const stu = new Student(
            getLengthedNumStr(i + 1, 4),
            getRandomName(),
            getRandom(20, 40),
            getRandomItem("男女基同"),
            getRandom(2101, 2199) + "",
            getRandom(7000, 18000)
        );
        students.push(stu);
    }
    return students;
}